<template>
  <el-container>
    <el-aside width="auto">
      <menus :collapse="iscollapse"></menus>
    </el-aside>
    <el-container>
      <el-header>
        <tops :state="iscollapse" @bian="iscollapse=!iscollapse"></tops>
      </el-header>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import tops from "./tops";
import menus from "./menu";

export default {
  name: "home",
  components: {
    tops,
    menus
  },
  data() {
    return {
      iscollapse: false
    };
  },
};
</script>

<style score lang='sass'>
body
  background-color: #f3f3f3
  height:100%
  .el-container,
  .el-aside
    height: 100%
  .el-header
    padding: 0
</style>